package com.mingqijia.gassafety.webserver.request;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 *
 * @author wanghai
 * @since 2022-02-28
 */

@Data
@ApiModel("客户绑定设备入参")
public class ConsumerBindingRequest {

    @ApiModelProperty("客户 id")
    @NotNull(message = "客户id不能为空")
    private Integer consumerId;

    @ApiModelProperty("设备iMEI集合")
    @Valid
    @NotEmpty(message = "至少得有一个imei号")
    private List<BindingPositionRequest> imeiList;

    @ApiModelProperty("设备绑定渠道, 1-手动, 2-时刻助手 3-TCIS 4-紫荆WiFi")
    private Integer bindChannel = 1;


    @ApiModelProperty(value = "订单号")
    private String outOrderCode;

    @ApiModelProperty(value = "企业id")
    private String spId;

    @ApiModelProperty(value = "0默认 外购：0 内购 1")
    private Integer source;

    @ApiModelProperty(value = "户址")
    private String address;

    @ApiModelProperty(value = "经纬度")
    private double positionLat;
    @ApiModelProperty(value = "经纬度")
    private double positionLon;

    @ApiModelProperty(value = "服务信息是否可编辑 0-可 1-不可")
    private Integer isUpdate;

    private String imei;

    @ApiModelProperty(value = "事件 0:解绑, 1:绑定")
    private Integer event;
}
